//
// Created by Zsir on 2025/7/25.
//

#include "Task.h"

Task::Task(Task::Func func, void *data)
    : func_(std::move(func)),
      data_(data)
{

}

void Task::run()
{
    func_(data_);
}

Task::Func Task::getFunc()
{
    return func_;
}

Task::~Task()
= default;
